package com.lsu.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 课程时间表
 * @Date 2023-11-07 18:33:25
 * @author hjj
 */
@Data
@TableName("time_table")
@ApiModel(value="TimeTable对象", description="课程时间表")
public class TimeTable implements Serializable {

    @JsonIgnore  //数据库中不会输出该字段到json中
    @ApiModelProperty("#id")
    private Integer id;

    @NotNull(message="[课程表id]不能为空")
    @ApiModelProperty("课程表id")
    private Integer scheduleId;

    @NotNull(message="[第几节课]不能为空")
    @ApiModelProperty("第几节课")
    private Integer whichNum;

    @NotNull(message="[结束时间(HH:mm:ss)]不能为空")
    @ApiModelProperty("结束时间(HH:mm:ss)")
    private String endTime;

    @NotNull(message="[开始时间(HH:mm:ss)]不能为空")
    @ApiModelProperty("开始时间(HH:mm:ss)")
    private String startTime;

    public TimeTable() {
    }

    public TimeTable(Integer scheduleId, Integer whichNum, String endTime, String startTime) {
        this.scheduleId = scheduleId;
        this.whichNum = whichNum;
        this.endTime = endTime;
        this.startTime = startTime;
    }
}
